<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>文本插值</title>
</head>
<body>
    <div id="div">
        <div>{{a}}</div>
        <div v-html="a"></div>
    </div>
</body>

    <script src="js/vue.js"></script>
    <script>
        new Vue({
          el:"#div",
          data:{
            a:"<b>java</b>"
          }
        });
    </script>
</html>